function G = CalculateG(v1,cluster)
[n11,n12]=size(v1);
%V为方阵，对应n12列即存在n12个中心点
W=zeros(n12);
for i=1:n12
    sum1=0;
    sumW=[0,0]';
    for j=1:n11
        len = norm(v1(j,i));
        sumW=sumW+cluster(:,i).*len;
        sum1=sum1+len;
    end
    W(i)=sumW./sum1;
end

